import java.awt.print.Book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 徐海涛
 * Date: 2022-01-06
 * Time: 14:21
 */
class MyArrayList {
    private Object[] array;
    private int size;
    private int usedSize;
    public MyArrayList(int usedSize) {
        this.usedSize = usedSize;
    }
    public void add(Object o) {//尾插

    }
    public void get(int index) {//获得index位置的元素

    }
}
public class TestDemo {
    public static void main(String[] args) {
        MyArrayList books = new MyArrayList(10);
        for (int i = 0; i < 10; i++) {
            books.add(new Book());//尾插10本书
        }
    }
}
